package org.example.controller;

import lombok.extern.slf4j.Slf4j;
import org.example.common.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/api")
public class TestController {
    
    /**
     * 测试需要鉴权的接口
     */
    @GetMapping("/test-auth")
    public ResponseEntity testAuth() {
        return ResponseEntity.ok("认证成功，可以访问受保护的资源");
    }
}